package ch17;

import ch16.ElementNotFoundException;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by 春旺 on 2017/10/26.
 */
public class LinkedBinarySearchTreeTest {
    LinkedBinarySearchTree tree = new LinkedBinarySearchTree();
    @Test
    public void findMin() throws Exception, ElementNotFoundException {
        tree.add(77);tree.add(24);tree.add(58);
        tree.add(82);tree.add(17);tree.add(40);
        tree.add(97);
        assertEquals(17,tree.findMin());
    }

    @Test
    public void findMax() throws Exception {

    }

}